package com.ymttest.database.sqlwapper.fastturnover;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.fastturnover.WithdrawAccount;

public class WithdrawAccountWrapper {
	
	SqlManager manager;

	public WithdrawAccountWrapper() {
		manager = new SqlManager("fastturnover");
	}

	@SuppressWarnings("unchecked")
	public WithdrawAccount selectByPrimaryKey(String id) {

		WithdrawAccount withdrawAccount = new WithdrawAccount();
		List<WithdrawAccount> result = manager
				.getSelectResults(
						"com.ymttest.database.mapping.fastturnover.TurnoverApplyDetailMapper.selectByPrimaryKey",
						id);
		manager.commit();

		if (result.size() > 0) {
			withdrawAccount = result.get(0);
		}

		return withdrawAccount;
	}
	
	public static void main(String[] args) {
		
		WithdrawAccountWrapper test = new WithdrawAccountWrapper();
		
		test.selectByPrimaryKey("1");
	}
}
